package com.sysman.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.sysman.mapper.HospinfoMapperCustom;
import com.sysman.mapper.HosplogininfoMapper;
import com.sysman.mapper.HosplogininfoMapperCustom;
import com.sysman.po.HospinfoCustom;
import com.sysman.po.Hosplogininfo;
import com.sysman.po.HosplogininfoCustom;
import com.sysman.service.HospitalService;

/** 
* @author  LTT-AH-ZY
* @date 创建时间：2017年8月13日 下午8:11:39 
* @version 1.0 
* @parameter 参数及其意义
* @since 最早使用该方法/类/接口的JDK版本 
* @since  
* @return  
*/

public class HospitalServiceImpl implements HospitalService{
	@Autowired
	private HosplogininfoMapperCustom hosplogininfoMapperCustom;
	@Autowired
	private HosplogininfoMapper hosplogininfoMapper;
	@Autowired
	private HospinfoMapperCustom hospinfoMapperCustom;
	@Override
	public List<HosplogininfoCustom> InitHosplogininfoList(HosplogininfoCustom hosplogininfoCustom) throws Exception {
		// Init hosplogininfo list
		return hosplogininfoMapperCustom.InitHosplogininfoList(hosplogininfoCustom);
	}
	@Override
	public List<HosplogininfoCustom> InitHosplogininfoExmineList(HosplogininfoCustom hosplogininfoCustom)
			throws Exception {
		// init hosplogininfo examine list
		return hosplogininfoMapperCustom.InitHosplogininfoExmineList(hosplogininfoCustom);
	}
	@Override
	public int UpdateHosplogininfoType(Integer hosploginid, HosplogininfoCustom hosplogininfoCustom) throws Exception {
		// update hosplogininfo by hosploginid
		hosplogininfoCustom.setHosploginid(hosploginid);
		return hosplogininfoMapper.updateByPrimaryKeySelective(hosplogininfoCustom);
	}
	@Override
	public Hosplogininfo findHosplogininfoDatils(Integer hosploginid) throws Exception {
		// select * from hosplogininfo by hosploginid
		return hosplogininfoMapper.selectByPrimaryKey(hosploginid);
	}
	@Override
	public HospinfoCustom findHospinfoDetails(HospinfoCustom hospinfoCustom) throws Exception {
		// TODO Auto-generated method stub
		return hospinfoMapperCustom.findHospinfoDetails(hospinfoCustom);
	}
}
